<div class="title-menu">
    <h2>Bảng kích thước</h2>
</div>
<nav class="bonus">
    <a href="<?php echo base_url("backend/products");?>"><< Quay lại</a> | <a href="<?php echo base_url("backend/size/add").'/'.$pro_id;?>">Thêm kích thước</a> | <a href="<?php echo base_url("backend/size/deleteall").'/'.$pro_id;?>" onClick="return confirm('Xác nhận xóa')">Xóa tất cả</a>
</nav>
<article>
    <?php
    if(isset($parcat) && count($parcat)){
    ?>
    <table cellspacing="0" cellpadding="5" border="1">
        <tr>
            <th>ID</th>
            <th>Pro_id</th>
            <th>Kích thước</th>
            <th>Giá thêm</th>
            <th>Tùy chọn</th>
        </tr>
        <?php        
            foreach ($parcat as $pcat){
        ?>
        <tr>
            <td><?php echo $pcat->id;?></td>
            <td><?php echo $pcat->pro_id;?></td>
            <td><?php echo $pcat->size;?></td>
            <td><?php echo $pcat->price_bonus;?></td>
            <td><a href="<?php echo base_url("backend/size/update").'/'.$pcat->id;?>">Sửa</a> | <a href="<?php echo base_url("backend/size/delete").'/'.$pcat->id.'/'.$pcat->pro_id;?>" onClick="return confirm('Xác nhận xóa')">Xóa</a></td>            
        </tr>
            <?php            
            }
        ?>
    </table>
    <?php
    }
    ?>
</article>